<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return=array();
if($_RQ['op']=='main'){
	$return['member']=pdo_get('core_members',array('id'=>$_SESSION['uid']),array('avatar','nickname','realname'));
	$item=$this->plugin_setting('setting');
	$return['footernav']=$item['footernav'];
	exi($return);
}
if($_RQ['op']=='fabu'){
	$pindex = max(1, intval($_SESSION['page']));
	$psize = 15;
	$params=array('uniacid'=>$_SESSION['uniacid'],'uid'=>$_SESSION['uid']);
	$fields=array('id','title','start','end','createtime','status','time','name','mobile','people','self','type','num','price');
    $orderby='createtime desc';
	$total='';
	$return['list']=pdo_getslice('jy_cmspinche_list',$params,array($pindex,$psize),$total,$fields,'',$orderby);
	foreach($return['list'] as &$v){
		$v['createtime']=date('Y-m-d H:m:s',$v['createtime']);
	}
	exi($return);
}


?>